grails.servlet.version = "3.0" // Change depending on target container compliance (2.5 or 3.0)
grails.project.class.dir = "target/classes"
grails.project.test.class.dir = "target/test-classes"
grails.project.test.reports.dir = "target/test-reports"
grails.project.work.dir = "target/work"
grails.project.target.level = 1.6
grails.project.source.level = 1.6
grails.server.port.http = 8012
grails.project.war.file = "target/${appName}.war"


grails.project.dependency.resolver = "maven" // or ivy
grails.project.dependency.resolution = {
    // inherit Grails' default dependencies
    inherits("global") {
        // specify dependency exclusions here; for example, uncomment this to disable ehcache:
        // excludes 'ehcache'
    }
    log "error" // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose'
    checksums true // Whether to verify checksums on resolve
    legacyResolve false // whether to do a secondary resolve on plugin installation, not advised and here for backwards compatibility

    repositories {
        inherits true // Whether to inherit repository definitions from plugins

        grailsPlugins()
        grailsHome()
        mavenLocal()
        grailsCentral()
        mavenCentral()

        mavenRepo "http://0531gjxx.oicp.net:82"
        mavenRepo "http://0531gjxx.oicp.net:82/org/grails/plugins"
        // uncomment these (or add new ones) to enable remote dependency resolution from public Maven repositories
        //mavenRepo "http://repository.codehaus.org"
        //mavenRepo "http://download.java.net/maven/2/"
        //mavenRepo "http://repository.jboss.com/maven2/"
    }

    dependencies {
        // specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes e.g.
        // runtime 'mysql:mysql-connector-java:5.1.29'
        // runtime 'org.postgresql:postgresql:9.3-1101-jdbc41'
        test "org.grails:grails-datastore-test-support:1.0.2-grails-2.4"
        compile "org.ocpsoft.prettytime:prettytime:3.2.7.Final"

        // https://mvnrepository.com/artifact/org.activiti/activiti-engine
        compile group: 'org.activiti', name: 'activiti-engine', version: '5.22.0'
        // https://mvnrepository.com/artifact/org.activiti/activiti-spring
        compile group: 'org.activiti', name: 'activiti-spring', version: '5.22.0'
        // https://mvnrepository.com/artifact/org.activiti/activiti-bpmn-model
        compile group: 'org.activiti', name: 'activiti-bpmn-model', version: '5.22.0'
        // https://mvnrepository.com/artifact/org.activiti/activiti-json-converter
        compile group: 'org.activiti', name: 'activiti-json-converter', version: '5.22.0'
        // https://mvnrepository.com/artifact/org.activiti/activiti-bpmn-layout
        compile group: 'org.activiti', name: 'activiti-bpmn-layout', version: '5.22.0'

        // https://mvnrepository.com/artifact/org.apache.xmlgraphics/batik-transcoder
        compile group: 'org.apache.xmlgraphics', name: 'batik-transcoder', version: '1.7'
        // https://mvnrepository.com/artifact/org.apache.xmlgraphics/batik-css
        compile group: 'org.apache.xmlgraphics', name: 'batik-css', version: '1.7'
        // https://mvnrepository.com/artifact/org.apache.xmlgraphics/batik-svg-dom
        compile group: 'org.apache.xmlgraphics', name: 'batik-svg-dom', version: '1.7'
        // https://mvnrepository.com/artifact/org.apache.xmlgraphics/batik-svggen
        compile group: 'org.apache.xmlgraphics', name: 'batik-svggen', version: '1.7'
        // https://mvnrepository.com/artifact/org.apache.xmlgraphics/batik-codec
        compile group: 'org.apache.xmlgraphics', name: 'batik-codec', version: '1.7'
        // https://mvnrepository.com/artifact/mysql/mysql-connector-java
        compile group: 'mysql', name: 'mysql-connector-java', version: '5.1.17'
    }

    plugins {
        // plugins for the build system only
        build ":tomcat:7.0.70" // or ":tomcat:8.0.22"

        // plugins for the compile step
        compile ":scaffolding:2.1.2"
        compile ':cache:1.1.8'
        // asset-pipeline 2.0+ requires Java 7, use version 1.9.x with Java 6
        compile ":asset-pipeline:2.5.7"

        // plugins needed at runtime but not for compilation
        runtime ":hibernate4:4.3.10" // or ":hibernate:3.6.10.18"
        runtime ":database-migration:1.4.0"
        runtime ":jquery:1.11.1"
        compile ":spring-security-core:2.0-RC6"

        build(":release:3.1.2", ":rest-client-builder:2.1.1") {
            export = false
        }
    }
}
